import request from '@/utils/request'

// 查询服务人员列表
export function listServicePeople(query) {
  return request({
    url: '/ServicePeople/ServicePeople/list',
    method: 'get',
    params: query
  })
}

// 查询服务人员详细
export function getServicePeople(id) {
  return request({
    url: '/ServicePeople/ServicePeople/' + id,
    method: 'get'
  })
}

// 新增服务人员
export function addServicePeople(data) {
  return request({
    url: '/ServicePeople/ServicePeople',
    method: 'post',
    data: data
  })
}

// 修改服务人员
export function updateServicePeople(data) {
  return request({
    url: '/ServicePeople/ServicePeople',
    method: 'put',
    data: data
  })
}

// 删除服务人员
export function delServicePeople(id) {
  return request({
    url: '/ServicePeople/ServicePeople/' + id,
    method: 'delete'
  })
}
